package com.example.demo.command;

/**
 * 打开空调命令
 *
 * @author Liu Huijun
 * @date 2023-02-08
 */
public class AirConditionerCloseCommand implements Command {

    private AirConditioner airConditioner;

    public AirConditionerCloseCommand(AirConditioner airConditioner) {
        this.airConditioner = airConditioner;
    }

    @Override
    public void execute() {
        airConditioner.close();
    }
}
